package com.foreknow.springframework.action;

import com.foreknow.bean.Admin;
import com.foreknow.springframework.dao.AdminDao;
import com.foreknow.springframework.dao.impl.AdminDaoImpl;

public class AdminAction {
    private AdminDao adminDao;

    public void setAdminDao(AdminDao adminDao) {
        this.adminDao = adminDao;
    }

    public String execute() {
        //调用dao中的方法
        adminDao.save(new Admin());
        return "success";
    }
}
